/*
 * @Descripttion: 使用示例
 * @Author: pujianguo
 * @Date: 2021-04-02 17:17:14
 */
import { _get, _post, _put, _delete } from 'utils/request'
import { TaskEditBody, TaskListQuery } from 'types/eg'

// eg: task
export const listTask = (query: TaskListQuery): any => _get('/oa/task', query)
export const addTask = (body: TaskEditBody): any => _post('/oa/task', body)
export const updateTask = (id: number, body: TaskEditBody): any => _put(`/oa/task/${id}`, body)
export const deleteTask = (id: number): any => _delete(`/oa/task/${id}`)
